#ifndef Valve_H
#define Valve_H

#include "ItemBase.h"
#include "Pipe.h"
#include <QObject>

class Valve : public Pipe
{
	Q_OBJECT
public:
	Valve(const QString type, QPointF pos, ItemBase* link);
	~Valve();

private:
	void paint(QPainter *painter, const QStyleOptionGraphicsItem * option, QWidget *widget);
	int pipeId;
	QString valueType;
	qreal valueAttri;
	void initData();
	QMap<int, QString> getAttrs();
	QVector<bool> getDrawFlags();
	double angle;
	QPointF centerPos[3] ;

public slots: 
	void refreshAngle();
	
};

#endif // Valve_H
